﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using YLPublicService.TransferModel;


namespace YLClient.UserControls.TemplateControls
{
    /// <summary>
    /// Interaction logic for RequireArgument.xaml
    /// </summary>
    public partial class RequireArgument : UserControl
    {
        public RequireArgument(TemplateItem.TemplateDetial.RequireValues.Item item)
        {
            InitializeComponent();
            Item = item;
            labName.Content = item.mMemo;
        }
        public TemplateItem.TemplateDetial.RequireValues.Item Item { get; set; }
        public bool IsSetValue
        {
            get
            {
                return Item.mValue.Trim() != "";
            }
        }
        private void txtValue_LostFocus(object sender, RoutedEventArgs e)
        {
            Item.mValue = txtValue.Text;
        }
        public override string ToString()
        {
            return Item.ToString();
        }
    }
}